# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'

target 'MoyaHttpDemo' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!
  
  # Pods for MoyaHttpDemo
  # 响应式编程
  pod 'RxSwift', '5.1.2'
  pod 'RxCocoa', '5.1.1'
  
  # 模型转换
  pod 'ObjectMapper', '4.2.0'
  pod 'Moya-ObjectMapper/RxSwift', '2.9'
  
  # 网络库 这个库会自动添加rxswift库
  pod 'Moya/RxSwift', '14.0.0'
  
  # 约束
  pod 'SnapKit', '5.0.1'
  
end

## 实现post_install Hooks
post_install do |installer|
  # 遍历项目中所有target
  installer.pods_project.targets.each do |target|
    # 过滤掉不需要改的库
    # 遍历build_configurations
    target.build_configurations.each do |config|
      #        puts "====#{config}===="
      config.build_settings['ARCHS'] = "arm64"
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
      config.build_settings['ENABLE_BITCODE'] = 'NO'
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
    end
  end
end
